﻿<UserControl x:Class="PatientHistoryUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
             xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" xmlns:my1="clr-namespace:WpfCheckListBox;assembly=WpfCheckListBox">
    <Grid Background="{StaticResource WindowBackground}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TextBlock Text="Past Medical History" Grid.ColumnSpan="4" Style="{StaticResource TextBlockStyle}"/>
        <my:DataGrid AutoGenerateColumns="False" Grid.Row="1" Margin="5" Height="110" Name="PastMedicalDataGrid" Grid.ColumnSpan="2">
            <my:DataGrid.Columns>
                <my:DataGridTextColumn Header="When" Width="80" Binding="{Binding happendWhen}" />
                <my:DataGridTextColumn Header="Complaints" Width="120" Binding="{Binding Complaints}"/>
                <my:DataGridTextColumn Header="Treatments" Width="120" Binding="{Binding treatments}" />
                <my:DataGridTextColumn Header="Notes" Width="120" Binding="{Binding notes}" />
            </my:DataGrid.Columns>
        </my:DataGrid>
        <TextBlock Text="Allergy details" Grid.Row="2" Grid.ColumnSpan="4" Style="{StaticResource TextBlockStyle}"/>
        <my:DataGrid AutoGenerateColumns="False" Margin="5" Grid.Row="3" Height="110" Name="AllergyDataGrid" Grid.ColumnSpan="2">
            <my:DataGrid.Columns>
                <my:DataGridTextColumn Header="Allergy" Width="120" Binding="{Binding Allergy}" />
                <my:DataGridTextColumn Header="Allergy type" Width="120" Binding="{Binding Allergytype}"/>
                <my:DataGridTextColumn Header="Reaction" Width="120" Binding="{Binding Reaction}" />
                <my:DataGridTextColumn Header="Severity" Width="80" Binding="{Binding Severity}" />
            </my:DataGrid.Columns>
        </my:DataGrid>
        <TextBlock Text="Immunization" Grid.Row="4" Style="{StaticResource TextBlockStyle}"/>
        <my1:CheckedListBox Name="ImmunizationCheckedListBox" Grid.Row="5" Height="110"/>
        <TextBlock Text="Habits" Grid.Row="4" Grid.Column="1" Style="{StaticResource TextBlockStyle}"/>
        <my1:CheckedListBox Name="HabitsCheckedListBox" Grid.Column="2" Grid.Row="5" Height="110"/>
    </Grid>
</UserControl>
